﻿using System;
using System.Data.Common;
using System.Data;


namespace Gencode.Common.SQL
{
	class DataReaderAdapter : DbDataAdapter
	{
		public int FillFromReader(DataTable dataTable, IDataReader dataReader)
		{
			return this.Fill(dataTable, dataReader);
		}

		protected override RowUpdatedEventArgs CreateRowUpdatedEvent(
		DataRow dataRow,
		IDbCommand command,
		StatementType statementType,
		DataTableMapping tableMapping
		) { return null; }

		protected override RowUpdatingEventArgs CreateRowUpdatingEvent(
		DataRow dataRow,
		IDbCommand command,
		StatementType statementType,
		DataTableMapping tableMapping
		) { return null; }

		protected override void OnRowUpdated(
		RowUpdatedEventArgs value
		) { }
		protected override void OnRowUpdating(
		RowUpdatingEventArgs value
		) { } 
	}
}
